package com.lsyw.intergrate.mapper;

import com.lsyw.intergrate.entity.MSamplingTaskDetectionItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 手动采样任务监测信息项表 Mapper 接口
 * </p>
 *
 * @author 刘磊
 * @since 2024-01-19
 */
@Mapper
public interface MSamplingTaskDetectionItemMapper extends BaseMapper<MSamplingTaskDetectionItem> {

    @Update("update m_sampling_task_detection_item set del_flag=1 where sampling_task_detection_info_id in (select id from m_sampling_task_detection_info  where sampling_task_detection_id=#{id})")
    void removeByDetectionId(String id);
}
